#include <iostream>

using namespace std;


int main()
{
    int a[100];
    int n,i,j,k;
    std::cout<<"n=";
    std::cin>>n;
    for (i=0;i<n;i++)
    {
        std::cout<<"a["<<i<<"]=";
        std::cin>>a[i];
    }
    if (n%2==0)
    {
        n++;
        for (i=n;i>=n/2;i--)
            {
                a[i]=a[i-1];
            }
        a[n/2]=2003;
    }
    else
    {
        n++;
        for (i=n;i>=n/2-1;i--)
            {
                a[i]=a[i-1];
            }
        a[n/2-1]=2003;
         n++;
        for (i=n;i>=n/2+1;i--)
            {
                a[i]=a[i-1];
            }
        a[n/2+1]=2003;
    }
    for (i=0;i<n;i++)
    {
        std::cout<<a[i]<<" ";
    }
    return 0;
}
